<%--
  Created by: dengfengdecao
  Date Time: 16/9/29 17:36
--%>
<%@ taglib prefix="f" uri="http://www.springframework.org/tags/form" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
    ${msg_response}
    <form action="/login" method="post">
        用户名:<input type="text" name="username" value="admin"><br/>
        密码:<input type="password" name="password" value="123456"><br/>
        <input type="submit" value="登录"><br/>
        <input type="reset" value="重置"><br/>
    </form>

    <f:form action="/login" modelAttribute="user" method="post">
        用户名：<f:input path="username" />
        <f:errors path="username" cssClass="error" />
        <br />
        密码：<f:password path="password" />
        <f:errors path="password" cssClass="error" />
        <br />
        <f:button name="submit">提交</f:button>
    </f:form>
</body>
</html>
